<?php

class Engine_Form_Element_Button extends Engine_Form_Element {

    const BTN_PRIMARY 	= 'btn-primary';
    const BTN_INFO 		= 'btn-info';
    const BTN_SUCCESS 	= 'btn-success';
    const BTN_WARNING 	= 'btn-warning';
    const BTN_DANGER 	= 'btn-danger';
    const BTN_INVERSE 	= 'btn-inverse';
    const BTN_LINK 		= 'btn-link';

    public function compile() {
        $result = '<button class="btn' . ($this->style ? ' ' . $this->style : ''  ) . '" ' . $this->renderAttribs(). ' >' . $this->label . '</button>'."\r\n";
        return $result;
    }

    public function populate($value) {

    }

    public function setStyle($style) {
    	$this->style = $style;
    }

}